package com.ant4j.popularize.ui;

import java.awt.BorderLayout;
import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class MainPanel extends JPanel {
	private Font f=new Font("华文新魏",0,16);
	public MainPanel() {
		// this.setBorder(new LineBorder(Color.gray));
		// this.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));

		this.setLayout(new BorderLayout());

		/*
		 * JPanel jpanel = new JPanel(new BorderLayout()); JTabbedPane
		 * jtabbedpane = new JTabbedPane(); jtabbedpane.add("Alignment",
		 * createTab1Content()); jtabbedpane.add("Rotation",
		 * createTab2Content()); jpanel.add(jtabbedpane);
		 */

		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setFont(f);
		tabbedPane.setBounds(0, 0, 445, 250);

		//
		JPanel jpanel1 = new FunctionPanel();
		tabbedPane.addTab(" 功能界面 ", jpanel1);

		//
		JPanel jpanel2 = new JPanel();
		tabbedPane.addTab(" 参数设置 ", jpanel2);

		//
		JPanel jpanel3 = new MessagePanel();
		tabbedPane.addTab(" 官方公告 ", jpanel3);
		this.add(tabbedPane);

		JButton okButton = new JButton("确定");
		okButton.setBounds(280, 260, 60, 30);
		// okButton.addActionListener(this);

		JButton cancelButton = new JButton("取消");
		cancelButton.setBounds(360, 260, 60, 30);
		// cancelButton.addActionListener(this);

	}

}
